vectorimage
Class GVectorObject

java.lang.Object
  extended by vectorimage.GVectorObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GVectorObject_Shape, RAGAgentShape, RAGAgentTrace

public class GVectorObject
extends java.lang.Object
implements java.io.Serializable

A graphical vector object based on a vector object source.

Author:
Steven de Jong, steven.dejong@cs.unimaas.nl
See Also:
Serialized Form

Constructor Summary
GVectorObject(VectorObject obj)
          Constructor.
 
Method Summary
static GVectorObject createGVectorObject(VectorObject obj)
          Create a graphical vector object based on the vector object given.
 java.awt.Color getColor()
          Return the colour for the object.
 VectorObject getObject()
          Get underlying object.
 float getOpacity()
          Return the opacity (0.0F = transparent, 1.0F = opaque).
 java.awt.Shape getShape()
          Create a shape for the object.
 boolean isFilled()
          Return whether to fill or draw this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GVectorObject

public GVectorObject(VectorObject obj)
Constructor.

Method Detail

getObject

public VectorObject getObject()
Get underlying object.


getShape

public java.awt.Shape getShape()
Create a shape for the object.


getColor

public java.awt.Color getColor()
Return the colour for the object.


isFilled

public boolean isFilled()
Return whether to fill or draw this object.


getOpacity

public float getOpacity()
Return the opacity (0.0F = transparent, 1.0F = opaque). By default, objects are opaque.


createGVectorObject

public static GVectorObject createGVectorObject(VectorObject obj)
Create a graphical vector object based on the vector object given.